#ifndef LOG_H
#define LOG_H

#include <QObject>

class Log
{
public:
    Log(int logLevel, const QString& appName = "", const QString& dir = "");

private:

    static void messageOutPut(QtMsgType type, const QMessageLogContext &context, const QString &msg);

    static void writeToFile(const QByteArray &log);
private:

    static int m_logLevel;
    static QString m_appName;
    static QString m_logDir;
};

#endif // LOG_H
